<template>
	<view class="medical">
		<view class="medical-information">
			<view class="medical-cell">
				<view class="medical-cell-title">最新推荐</view>
				<view class="medical-cell-value">更多</view>
			</view>
			<view class="medical-information-list">
				<goods-item class="goods-wrap" :goodsData="goodsData"></goods-item>
			</view>
		</view>
	</view>
</template>

<script>
import GoodsItem from '../../components/goods-item.vue'
export default {
	components: {
		GoodsItem
	},
	data() {
		return {
			goodsData: [{
				gimage: '/static/logo.png',
				gtitle: 'BHT商品1',
				gpriceNow: '99'
			},{
				gimage: '/static/logo.png',
				gtitle: 'BHT商品2',
				gpriceNow: '99'
			},{
				gimage: '/static/logo.png',
				gtitle: 'BHT商品2',
				gpriceNow: '99'
			}]
		};
	},
	onShow() {
	},
	methods: {
	},
	onPullDownRefresh() {
		console.log('onPullDownRefresh');
		setTimeout(function() {
			uni.stopPullDownRefresh();
			console.log('stopPullDownRefresh');
		}, 1000);
	}
};
</script>

<style scoped lang="scss">
$color: #7e7e7e;
image {
	width: 100%;
	height: 100%;
}
.medical {
	&-information {
		padding: 10upx 15upx;
		&-list {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			.goods-wrap {
				display: flex;
				flex-wrap: wrap;
				justify-content: space-between;
			}
		}
			.mil-item {
				display: flex;
				align-items: center;
				padding: 16upx;
				margin-bottom: 20upx;
				border-radius: 20upx;
				background-color: #fff;
				&-cover{
					width: 280upx;
					height: 200upx;
					border-radius: 10upx;
					overflow: hidden;
				}
				&-article {
					flex: 1;
					height: 190upx;
					margin-left: 20upx;
					overflow: hidden;
					&-title {
						display: block;
						margin-bottom: 10upx;
						text-overflow:ellipsis;
						white-space: nowrap;
						overflow: hidden;
					}
					&-content {
						font-size: 22upx;
						color: #545454;
					}
				}
		}
	}
	
	&-cell {
		display: flex;
		align-content: center;
		justify-content: space-between;
		line-height:1;
		margin: 40upx 10upx;
		&-title {
			font-size: 32upx;
		}
		&-value {
			font-size: 24upx;
			line-height: 1;
			color: $color;
			&::after{
// 				content: "\e602";
// 				line-height: 1;
			}
		}
	}
}
</style>
